package com.ruoyi.personnel.oa.note.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 便签实体类
 * 对应数据库字段 oa_note
 * @author lsy 2021.9.1
 * 修改：
 */
@Data
public class Note {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = true)
    private long noteId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID为空")
    @ApiModelProperty(value = "主键", required = true)
    private long userId;

    /**
     * 便签标题
     */
    @ApiModelProperty(value = "便签标题")
    private String noteTitle;

    /**
     * 便签内容
     */
    @ApiModelProperty(value = "便签内容")
    private String noteContent;

    /**
     * 时间
     */
    @ApiModelProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
}
